1/23/2015
==========

+++++++++++++++
CACHE2014 NOTES:
+++++++++++++++

The ^CASH(15050.12) entries (CASH.FileMan - CASH CUSTOM DATATYPES) have been hand edited to change "IsValidDT" to "IsValid" and some "%Library.Integer" parameters to be "%Library.Status". This file is used to create the CASH classes.

This was necessary due to Intersystems leaving out the "IsValidDT" method from the %Libary class in CACHE versions greater than CACHE2011. This was causing any SQL Query to fail due to the missing method. We also changed some of the CASH routines "IsValidDT" to "IsValid" and "%Library.Integer" parameters to be "%Library.Status".

The following changes were made to correct the return values displaying for SQL Queries:
 - CASH.FileMan.String (changed Method logic to call new CASHR sub-routines):
	; ClassMethod LogicalToDisplay 
	   calls $$DisPlayFileMan^CASHR("_FILE_","_FIELD_",%val)
	; ClassMethod LogicalToOdbc 
	   calls $$ODBCFileMan^CASHR("_FILE_","_FIELD_",%val)

 - CASHR.int (added sub-routines):
	; ODBCFileMan(FILE,FIELD,VALUE) ; for CACHE2014 
	  - Built specific for datatype FileMan.String 
	  - always return internal value - ignores Transform=1
	; DisPlayFileMan(FILE,FIELD,VALUE) ; for CACHE2014 
	  - Built specific for datatype FileMan.String 
	  - always return external value where Transform=1


When the CACHE2014 KIDS build is installed into a CACHE2014 instance, all of the (8) CASH CUSTOM DATATYPES classes are created based on what is in the ^CASH(15050.12) global entries.

CASH.FileMan Datatypes:
======================
CASH.FileMan.Date	CASH.FileMan.DateTime	CASH.FileMan.Numeric	CASH.FileMan.Pointer
CASH.FileMan.SetOfCodes	CASH.FileMan.String	CASH.FileMan.StringDateTime	CASH.FileMan.VariablePointer


CASH Utility Classes:
====================
CASH.FMFile	CASH.FMField	CASH.Utility


CASH.HDR Datatypes and Utility Classes:	
======================================
CASH.HDR.DateTime	CASH.HDR.Numeric	CASH.HDR.SetOfCodes	CASH.HDR.String
CASH.HDR.Utility
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
KIDS Build Name:  CASH_HDR1_0_10T_CACHE2014.KID
-------------------------------------------------------------------------------

PACKAGE: FM TO CACHE SQL 1.0     Jan 20, 2015 11:29 am                   PAGE 1
-------------------------------------------------------------------------------
TYPE: SINGLE PACKAGE                               TRACK NATIONALLY: YES
NATIONAL PACKAGE: FM TO CACHE SQL                ALPHA/BETA TESTING: NO
 
DESCRIPTION:
FileMan To Cache SQL Mapping Tool-Version 1.0 Build 10T - CACHE2014-12/18/2014
IsValidDT changed to IsValid and some %Library.Integer to %Library.Status
CHANGES:
1. Routine $$VERSION^CASHU - version of build changed to "2014"
2. Routine PROPERTY^CASHHDRO - Add TYPE="%Stream.GlobalCharacter" to keep
CLOB data type set.
3. Routine GETWPS^CASHR - Added GETWPS subroutine for CLOB WP setup.
4. Routine ODBCFileMan^CASHR - For CACHE2014 to return internal value.
5. Routine DisplayFileMan^CASHR - For CACHE2014 to return external value.
6. Routine WPSERIAL^CASH3 - Edit to change PTYPE variable for CLOB WP.
7. Routine GETFQDN^CASHC5 and GETIP^CASHC5 - Edit for $ZU change.
8. Routine MAXVALS^CASHCU - Revised file override (15050.14) checks.
9. Routine CASHHDR5 - Add "U" parameter for READONLY flag in SQL classes.
This is a special build for the HDR project. (CACHE 2014 version)
 
ENVIRONMENT CHECK:                               DELETE ENV ROUTINE:
 PRE-INIT ROUTINE: CLEAN^CASHI              DELETE PRE-INIT ROUTINE: No
POST-INIT ROUTINE: POST^CASHI              DELETE POST-INIT ROUTINE: No
PRE-TRANSPORT RTN: PRE^CASHHDR
 
                                           UP    SEND  DATA                USER
                                           DATE  SEC.  COMES   SITE  RSLV  OVER
FILE #      FILE NAME                      DD    CODE  W/FILE  DATA  PTRS  RIDE
-------------------------------------------------------------------------------
 
15050.11    CASH FM CLASS MAP              YES   YES   NO
 
15050.12    CASH CUSTOM DATATYPES          YES   YES   NO
 
15050.13    CASH ERRORS                    YES   YES   NO
 
15050.14    CASH PARAMETER FILE            YES   YES   YES     REPL  NO    NO
 
15050.19    CASH SQL RESERVED WORDS        YES   YES   NO

===============================================================================
...

===============================================================================
Special Note:
============

BRICK WALL WE HIT ON 2008 RETRO DAT:

We had planned on updating our 2008 Master DAT with WP and SOC updates across the board.  
But the WP stream functionality does NOT work in Cache 2008 but does in Cache 2011.

===============================================================================

Tag^Routine WPSERIAL^CASH3 has the coding change to USE the $$GETWPS^CASHR(...) call.

 S RCODE=" S {*}=$$GETWPS^CASHR("_FILE_","_FIELD_","_ID_")"

===============================================================================

